package com.cosina.game.crystallight.engine;

import com.cosina.game.crystallight.model.battle.Ability;
import com.cosina.game.crystallight.model.battle.ability.GameSpeedAbility;
import com.cosina.game.crystallight.model.battle.ability.build.PuddleAbility;
import com.cosina.game.crystallight.model.battle.ability.build.TowerAbility;
import com.cosina.game.crystallight.model.battle.ability.build.VortexAbility;
import com.cosina.game.crystallight.model.battle.ability.crystal.MineAbility;
import com.cosina.game.crystallight.model.battle.ability.crystal.RangeAbility;
import com.cosina.game.crystallight.model.battle.ability.crystal.SpeedAbility;
import com.cosina.game.crystallight.model.crystal.Palm;

public class AbilityManager{
	private static Ability tower = new TowerAbility();
	private static Ability puddle = new PuddleAbility();
	private static Ability vortex = new VortexAbility();
	private static Ability mine = new MineAbility();
	private static Ability speed = new SpeedAbility();
	private static Ability range = new RangeAbility();
	public static Ability gameSpeed = new GameSpeedAbility();
	
	Ability[] mapAbilities = {tower,puddle,vortex};
	Ability[] crystalAbilities = {mine,speed,range};
	
	public Ability[] getContextAbilities(){
		if(Palm.snatchCrystal()){
			return crystalAbilities;
		}else{
			return mapAbilities;
		}
	}
}
